package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.User;

/**
 * 
 * @author Marius Dumitriu - (May 21, 2010 - 9:13:12 PM)
 * 
 */

public interface UserDao extends HibernateDAO<User, Long> {
	@Repository(value = "userDao")
	public static class UserDaoImpl extends HibernateDAOImpl<User, Long> implements UserDao {

		@Autowired
		public UserDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(User.class);
		}

	}

}
